using System;
using Sirenix.Serialization;

namespace BTEditor
{
    [BTTask]
    public class DebugLog : Task
    {
        public override Type GetNodeType()
        {
            return typeof(NPBehave.DebugLog);
        }
 
        [BTValue(DealType.OnlyUse)]
        [OdinSerialize]
        public string Log;

        public override ErrorType GetIsVaild()
        {
            return string.IsNullOrEmpty(Log) ? ErrorType.Warn : ErrorType.None;
        }
    }
}